package com.study.cloud.custom.registerinterface;

import com.study.cloud.custom.registerclass.EnableMyReigster;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableMyInterfaceReigster
public class InterfaceReigsterApp {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(InterfaceReigsterApp.class);
        IHelloService  helloService= applicationContext.getBean(IHelloService.class);
        System.out.println(helloService.sayHello());

    }
}
